using System;
using System.Threading.Tasks;
using Acme.BookStore.Gongyings.Dtos;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace Acme.BookStore.Gongyings
{
    public interface IGongyingAppService : IApplicationService
    {
        Task<GongyingDto> GetAsync(string id);
        
        Task<PagedResultDto<GongyingDto>> GetListAsync(PagedAndSortedResultRequestDto input);
        
        Task<PagedResultDto<GongyingDto>> SearchByNameAsync(GongyingNameSearchDto input);
        
        Task<GongyingDto> CreateAsync(CreateGongyingDto input);
        
        Task<GongyingDto> UpdateAsync(string id, CreateGongyingDto input);
        
        Task DeleteAsync(string id);
    }
} 